#
# Source files
#
# Here is where you can add the name of your local imaging classes.
#

if (COMMAND cmake_policy)
	cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

SET (Processing_SRCS

vtkTestMemory.cxx
)

# --------------------------------------------------------------------------
# You probably do not need to modify anything below this line

# Create the vtkJOLLYProcessing C++ library
ADD_LIBRARY (vtkJollyProcessing ${Processing_SRCS})

SET_TARGET_PROPERTIES (vtkJollyProcessing
  PROPERTIES  INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
)

TARGET_LINK_LIBRARIES(vtkJollyProcessing vtkImaging vtkCommon vtkIO vtkWidgets vtkFiltering  )

# Create the vtkJolly Python library.
IF (VTK_WRAP_PYTHON AND VTKJOLLY_WRAP_PYTHON)
  VTK_WRAP_PYTHON3 (vtkJollyProcessingPython ProcessingPython_SRCS "${Processing_SRCS}")
  ADD_LIBRARY (vtkJollyProcessingPythonD ${ProcessingPython_SRCS})
  ADD_LIBRARY (vtkJollyProcessingPython MODULE vtkJollyProcessingPythonInit.cxx)

SET_TARGET_PROPERTIES (vtkJollyProcessingPython
  PROPERTIES  INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
)
# Python extension modules on Windows must have the extension ".pyd"
# instead of ".dll" as of Python 2.5.  Older python versions do support
# this suffix.
IF(WIN32 AND NOT CYGWIN)
  SET_TARGET_PROPERTIES(vtkJollyProcessingPython PROPERTIES SUFFIX ".pyd")
ENDIF(WIN32 AND NOT CYGWIN)

SET_TARGET_PROPERTIES (vtkJollyProcessingPythonD
  PROPERTIES  INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
)


  TARGET_LINK_LIBRARIES(vtkJollyProcessingPythonD vtkJollyProcessing vtkImaging vtkImagingPythonD vtkCommon vtkCommonPythonD vtkIO vtkIOPythonD vtkWidgets vtkWidgetsPythonD vtkFiltering vtkFilteringPythonD)
  TARGET_LINK_LIBRARIES(vtkJollyProcessingPython vtkJollyProcessingPythonD)

  INSTALL(TARGETS vtkJollyProcessing vtkJollyProcessingPythonD
    RUNTIME DESTINATION bin 
    LIBRARY DESTINATION lib 
    ARCHIVE DESTINATION lib 
  )
  INSTALL(TARGETS vtkJollyProcessingPython
    RUNTIME DESTINATION bin
    LIBRARY DESTINATION lib/python2.6/site-packages/vtkJolly
    ARCHIVE DESTINATION lib/python2.6/site-packages/vtkJolly
  )
ENDIF (VTK_WRAP_PYTHON AND VTKJOLLY_WRAP_PYTHON)

# Create the vtkBXDBioImageXD Java library.
IF (VTK_WRAP_JAVA AND VTKJOLLY_WRAP_JAVA)
  #INCLUDE(${VTK_CMAKE_DIR}/vtkWrapJava.cmake)
  #SET(VTK_WRAP_JAVA3_INIT_DIR "${PROJECT_SOURCE_DIR}")
  SET(VTK_JAVA_HOME ${PROJECT_BINARY_DIR}/java/${PROJECT_NAME})
  MAKE_DIRECTORY(${VTK_JAVA_HOME})
  VTK_WRAP_JAVA3(vtkJollyProcessingJava ProcessingJava_SRCS "${Processing_SRCS}")
  ADD_LIBRARY (vtkJollyProcessingJava ${ProcessingJava_SRCS})

  SET_TARGET_PROPERTIES (vtkJollyProcessingJava
    PROPERTIES  INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
  )

  TARGET_LINK_LIBRARIES(vtkJollyProcessingJava vtkJollyProcessing vtkImaging vtkImagingJava vtkCommon vtkCommonJava vtkIO vtkIOJava vtkWidgets vtkWidgetsJava vtkFiltering vtkFilteringJava)

  INSTALL(TARGETS vtkJollyProcessing vtkJollyProcessingJava
    RUNTIME DESTINATION bin 
    LIBRARY DESTINATION lib 
    ARCHIVE DESTINATION lib 
  )

ENDIF (VTK_WRAP_JAVA AND VTKJOLLY_WRAP_JAVA)
